package com.me.supermario;

public class Time extends Thread {
	private int quanto;
	public Time( int n ){
		quanto = n;
	}
	
	@SuppressWarnings("static-access")
	public void run(){
		while(quanto>=0){
			try {
				quanto--;
				this.sleep(1000);
			} catch (Exception e) {
			}
		}//while
	}//run
	
	public int getTime(){
		return quanto;
	}
	
	public void setTime( int n ){
		quanto = n;
	}
}
